from selenium import webdriver
import time

driver = webdriver.Firefox()
driver.get('https://www.baidu.com')
driver.maximize_window()

# 获得输入框尺寸
input_size = driver.find_element_by_id('kw').size
print(input_size)

# 获得备案信息
backup = driver.find_element_by_id('s-bottom-layer-right').text
print(backup)

# 返回元素的返回值(id,name,tye)
backup1 = driver.find_element_by_id('s-bottom-layer-right').get_attribute('type')
print(backup1)

time.sleep(1)
driver.quit()
